//
//  XSImageClipView.h
//  AudioVideo
//
//  Created by xueshan1 on 2019/9/19.
//  Copyright © 2019 xueshan1. All rights reserved.
//
//- (XSImageClipView *)clipView{
//    if (!_clipView) {
//        _clipView = [[XSImageClipView alloc]initWithFrame:CGRectMake(0, 0, kWidth, kHeight)];
//        _clipView.clipRectBlock = ^(UIImage *image , CGRect clipRect) {
//
//        };
//        [self.view addSubview:_clipView];
//        [self.view sendSubviewToBack:_clipView];
//    }
//    return _clipView;
//}

#import <UIKit/UIKit.h>

NS_ASSUME_NONNULL_BEGIN

@interface XSImageClipView : UIView

@property(nonatomic,strong)UIImage *originImage;

@property(nonatomic,copy)void (^clipRectBlock)(UIImage *image,CGRect clipRect);
@property (nonatomic, assign) CGRect clippingRect;

#pragma mark - 获取裁剪 图片
- (UIImage *)clipImage;

@end

NS_ASSUME_NONNULL_END
